pp108 : onselectchange Event (Combo)

onselectchange Event (Combo)


This event is fired before the contents of the object selected are changed.

Syntax

Inline HTML

<eibus:select id=comboID onselectchange="handler()"...> ... ... ... </eibus:select>

Event property

comboID.onselectchange = handler


Event Information

To invoke

Change the item displayed in the combo box.

Default Action

Initiates any action associated with this event, and changes the item in the combo box.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property

Description

option

Read-only. Object that denotes the item that is currently selected in the combo box.

selectedIndex

Read-only. Integer that denotes the index of item selected.

text

Read-only. String that contains the text displayed in the selected item.

value

Read-only. String that contains the value of the selected item.

returnValue

Read-only. Boolean that sets or retrieves the return value from the event.

  • true- Default. Item is changed from the combo box.
  • false- Item will not be changed from the combo box. Change will be cancelled.


See Also


combo